package controllers

import (
	"github.com/astaxie/beego"
	"quiz/models"
)

type CommonController struct {
	beego.Controller
}

/**
指定CommonController类型为该函数调用者
*/

func (resp *CommonController) SendResponse(response models.Response) {
	resp.Data["json"] = response
	resp.ServeJSON()
}
